package MianShi.class_init;

/**
 * @author wys
 * created in 5:39 2019/3/5
 */
public class Test {

    public static void main(String[] args) {
        System.out.print(B.c);
    }
}

class A {
    public static String c = "C";
    static {
        System.out.print("A");
    }
}

class B extends A{
    static {
        System.out.print("B");
    }


//    public static void main(String[] args) {


//    public static void main(String[] args) {
//        // jd
////        System.out.println(Test2.a);
//        new Test2();
////        System.out.println(new Test2());
//    }
//
//}
//class Test2{
//    public static final String a="JD";
//
//    static {
//        System.out.print("OK");
//    }

}
